package com.cloud.streamrabbitmqproducer.controller;

import com.cloud.streamrabbitmqproducer.sender.MessageSender;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author kangwen
 */
@RestController
public class StreamRabbitmqProducerController {

	@Resource
	private MessageSender messageSender;

	@RequestMapping("/send")
	public void send() {
		messageSender.send();
	}
}
